Results matching “virtual machine” from Ye Olde Rad Blog III

Feliz año nuevo. Most Content Management Systems (such as Drupal & MODx) work in conjunction with (require) a database. So do blogs (such as Movable Type) & forums (such as SMF).

MySQL is the world's most popular database software for web-based applications (.. such as CMS's & blogs & forums). It's what I use. It's the only database system I've ever used.

cPanel / Web Host ManagerThe Rad VPS (« physically located downtown Chicago) uses the cPanel/WHM control panel to help administer the site. cPanel makes it stupid-easy to create a new MySQL database.

You simply » enter a descriptive name for your new DATABASE (such as » rad_modx) and click the button labeled 'Create Database.' cPanel talks to MySQL and creates the database for you. Viola! Done. Too easy.

To use your new DATABASE, you'll also need to create a USER (such as » rad_modx, conveniently same as the database_name). Give this USER a password and click the button labeled » 'Create User.' Voila! Done creating new USER.

Lastly you need to assign a particular USER to a particular DATABASE. You do this by selecting both from their respective drop-down menus (one lists all available DATABASES, the other all possible USERS) and clicking the button labeled 'Add.'

Then you assign to this USER the appropriate PRIVILEDGES (normally ALL) necessary to perform the database functions. Click the button labeled 'Make Changes' and you're done. Voila! As if this weren't easy enough, cPanel even has a wizard to walk you thru these steps.

MySQL Database ManagementSo, in order to configure a database to work with a particular web application (such as Drupal or MODx), you need 3 pieces of info:

  1. database_name
  2. user_name
  3. user_password

Couldn't be easier. Tho I sometimes forget the final step of actually assigning the USER to the DATABASE (after creating both). Creating new DATABASES is not something I do on a regular basis.

RADIFIED currently uses 5 databases. Three for the blogs » 1-each for the 3 different versions of Movable Type I have installed .. based on v263 (installed 2003), v335 (installed 2007) & v432 (installed 2008). Another for Drupal (2008). And 1 for MODx Revolution (beta5), which I installed a few days ago.

The Rad forum, which uses YaBB, doesn't use a database. (At least not yet.) Might be worth noting here that Movable Type, Drupal, MODx & YaBB are all OPEN SOURCE (better than free) .. as is MySQL.

While installing MODx a few days ago, I noticed they include an option to test your database connection & credentials .. to see if MODx can access it okay.

Microsoft Fears Linux

|

I'm reluctant to republish the content of others (as so many sites already do), but .. I found it interesting & noteworthy that » Microsoft has acknowledged Linux as a threat .. especially since I spent so many hours in Linux these past few weeks (learning the Unix shell)

Linux PenguinCopy-n-paste snippet (minor Rad-editing for brevity):

"Microsoft acknowledges Linux as the first viable competitor to its Windows client business, due to the use of Linux on netbooks, which are rising in prominence as an alternative to full-sized notebooks.

Microsoft cited Red Hat and Canonical -- the latter of which maintains the Ubuntu Linux distribution -- as competitors to its client business, which includes the desktop version of its Windows OS." </snippet>

Notice how the article said » DESKTOP, and not server. Linux has long been a dominant force in the server market (.. if not the dominant force).

It's difficult to describe why Linux is so cool .. why using it feels so fresh & clean. But I think it has something to do with the good intentions .. that come from thousands of talented programmers donating their time & expertise .. to bring you (for free) an operating system they obviously believe in.

I might be imagining it, but I think you can actually feel these good intentions (while using Linux). Can you feel the difference (in intentions) between someone who genuinely loves you, and someone who is paid to love you?

Moreover, I feel our economy has a lot to do with the Linux threat to the Microsoft desktop. No matter how compelling the product, basic economics suggest it's hard to compete with free. (Which Windows is not.) And in these troubled economic times, free means more than it used to.

Learning the Unix Shell (bash)

|

Last month I mentioned a quest to learn the Unix shell .. specifically » bash (the Bourne Again SHell). Almost done. Currently ~80% complete .. enough to feel reasonably confident at a terminal.

Linux shell terminalThe 'shell' is simply a program that lets you interact with the operating system (actually the kernel, to be more precise) ..

.. by taking your (text-based) commands and passing them on to the kernel. In my case, this kernel happens to be » Linux (which is but one variant of Unix).

The term 'shell' comes from the notion that this software acts like a 'layer' that sits between you and the operating system .. similar to the way an egg-shell sits between you and your hard-boiled breakfast.

The shell can be intimidating, cuz it uses a (text-based) command-line interface (CLI). No intuitive GUI to help you along. You either know the commands or you don't.

Didn't take me long to realize the CLI was where Linux's true power resides. When we upgraded the site, for example, to a Virtual Private Server, the support-techs who helped me with the move all used the command-line to work their mojo.

Most Linux distros do indeed come with an excellent GUI (usually either KDE or Gnome). But (but!) the Rad VPS does not. Which is why it became necessary to learn the Unix shell. (Something I tried to avoid.)

The Rad VPS is based on CentOS (Community ENTerprise Operating System), an off-shoot of Red Hat, which is probably the most popular of all enterprise Linux distros (.. and now a new member of the S&P 500, a development you may find telling).

GUIs (such as KDE or Gnome) require lots of memory/RAM. My laptop, for example, has 2-gigs, but the Rad VPS comes with an allotment of only 512-MB (.. upgraded from 384 just today).

With that limited amount, I need to run not only all the standard web applications .. such as Apache (web server), MySQL (database), Perl (scripting language), etc. but also cPanel/WHM.

So there's not much RAM left to run a GUI. [ Don't think I didn't inquire about installing a GUI. =) ]

Bottom line » if you wanna administer your own VPS, you need to learn the Shell. So that's what I'm doing. (Of course, there have been distractions, making progress uneven.)

Quest to Learn the UNIX Shell (bash)

|

Been learning the UNIX Shell, which uses a command-line interface (from a terminal) .. something I've wanted to do ever since we upgraded to the Virtual Private Server last year. (Linux is a variant of UNIX.)

Linux shell terminalEven basic knowledge of (how to use) the Linux command line makes life administering a VPS much easier.

The Shell is simply a program that allows users (like me) to interact with the operating system (sometimes termed the 'kernel'). It can be conceived of as a 'layer' sitting between you and the operating system .. hence the term » shell.

Several shells exist, but nearly all Linux distributions come with » bash (Bourne Again Shell) .. cuz it's free, powerful and easy to use.

On my laptop I have installed a copy of Ubuntu Linux that I use to learn the shell (practice). Before jumping into learning the Shell, I figured this was a good time to upgrade my 'installation' of Ubuntu .. to the latest release (» v9.04, 'Jaunty Jackalope').

So I downloaded » this virtual machine (1.1 gig, using uTorrent). Had trouble getting it connected to the Internet, but that was due to my own inexperience with VMware, and not due to any short-comings of Ubuntu.

Anyway, I am really digging learning the Shell, cuz it's something I can use right away. For example, yesterday I upgraded the blogging software we use here at Radified (Movable Type) to the latest version (» 4.26). Something that used to take hours to accomplish was done in minutes .. (using a series of Shell commands). Beautiful.

Photos from Moçambique, Afrika

|

As promised, here's some photos from my South Afrikaan friend (who lives in Johannesburg). He works in the Film industry down there and loves cool technology.

Mozambique Woman

Seems like he's always traveling to one exotic place or another .. places with exotic names .. like Drakensberg (Afrikaan: Devil's Mountain) and Patagonia. (Yes, I'm jealous.)

Today's photos come from » Moçambique. (I actually had to look on a map to see where that is .. as is the case with most of the photos he sends.)

Moçambique sits on the east coast of Afrika, just above South Africa. It also shares borders with Zimbabwe, Zambia, Malawi and Tanzania. Off its coast sits the island of Madagascar.

Steve sent 5 pics, with the following note:

Just returned from a weekend escape across the border to Moçambique. Here's some pics from the capital city, Maputo, and surrounding areas.

Jo'burg sits on a high-altitude grassy plain. In comparison to most of Africa, its climate is rather harsh and frigid. Maputo, on the other hand, is further north. It sits right on the coast, and as a result is hot, humid & verdant.

Regulars might recall when I installed a copy of Ubuntu Linux last summer .. an operation I prepared for by creating a separate 20-gig partition (on my new hard drive), which I formatted as EXT3.

VMware Workstation

Somebody in the forums (Nigel, I think) suggested using VMware (.. either the freebie 'Player' or full-boat 'Workstation' ..) to run a 'virtualized' installation.

I initially balked at the idea .. cuz I didn't grok how virtualization works. But you don't need to understand how an automobile works in order to benefit from driving one. Same goes for virtualization. And the benefits are substantial.

The coolest thing about 'virtualizing' a Linux installation .. is that you can run it from (within) Windows .. just like you can run Photoshop (from Windows) .. or any other Windows-program for that matter .. multitasking all of them at the same time.

I found that .. if you can only use/access Linux by booting into it (and thus leaving Windows behind), you're less likely to use it (.. or so it has been my experience).

So last week I deleted my EXT3 partition, and reformatted it as NTFS .. where I installed a virtual machine containing Ubuntu 8.10 'Intrepid Ibex'.

Intrepid even found my wireless adapter upon initial boot-up. (Woo-hoo!) No more having to troubleshoot wireless connections and installing proprietary drivers just to get internet access.

The only drawback I've found is that you can't copy-n-paste info/text (such as passwords, etc.) between programs running in Windows and those running in (virtualized) Linux. (Tho I wonder if this might help.)

Hello August. Feeling pressure. Next month » D-day. I'm normally good at handling stress, but this has been relentless .. like white-water rafting for weeks, or months. Actually, it's been years (plural). And here come the rapids.

Pressure. Tension. Stress. (Long-term)

Pinback

If you listen carefully, you can hear things starting to crack. Tension. Makes life interesting.

Told the Dog yesterday, "I just want to be bored for one day. One day. Is that too much to ask?"

The dust won't settle 'til next month, but today was the first time I actually felt an air of victory .. like uh, that ol' dog ain't gonna bark no mo'. The writing is on the wall. (Thou art weighed in the balances and found wanting.)

This ain't to say I've emerged unscathed, or without scar. No. But we do what we must. Right? And victory here is defined narrowly as » not losing.

The Bug's Digital Milestone.dev

In related news .. I'm pleased to report a major developmental milestone » the Bug has mastered both point-n-click, and the click-n-drag.

Kid's software program at the library lets him click on a variety of colors (using paint-bucket palate-tool) and apply color to a picture by clicking on things such as » clouds (white), sun (yellow), trees (green), and sky (blue).

With click-n-drag, he can create rectangles or ovals, depending on the tool selected. To the ordinary observer these skills might seem trivial, but (as a certified geek) I recognized the development as a significant milestone in the digital age.

Virtual Private ServersWas hoping to delve into the new Movable Type blogging software I installed last week (MTOS), and begin configuring it, ..

.. but I've been preoccupied with trying to rein in our ("excessive") use of server resources, since we were exiled to the "stabilization server," where all bad-boys are sent (banished).

Our resource usage however, seems higher than ever. The most-recent number quoted (today) was 8.46% CPU. (Limit = 1.0%.) So I've been researching more in-depth exactly what's involved in moving to a VPS server.

VPS is half-way between "Shared" hosting (which we have now), and "Dedicated" hosting (where you have the whole server to yourself). VPS is sorta like the "condo" version of web hosting plans.

(Shared is like living in a tenement, all crowded together, while dedicated is like having your own house.)

Lunarpages VPS servers are limited to 25 accounts, so each account is allocated 4% of the CPU. They come with dual-Xeons, a dedicated IP, and let you do with them as you please.

In other words, they offer the benefits of a dedicated server at a fraction of the co$t ($45/month .. $40 if you pay for a whole year up front). So that's where we are .. looking at a move to VPS. (Thanks to Magoo for offering to administrate.)

Find recent content on the main index or look in the archives to find all content.